package cn.blb.service.edu.controller;

import cn.blb.common.result.Result;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/edu/user")
@CrossOrigin //解决跨域
public class LoginController {
    //login
    @PostMapping("/login")
    public Result login(){
        return Result.ok().setData("token","admin");
    }

    //info
    @GetMapping("/info")
    public Result info(){
        return Result.ok().setData("roles","admin").setData("name","admin").setData("avatar","https://wpimg.wallstcn.com/f778738c-e4f8-4870-b634-56703b4acafe.gif");
    }
}
